﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace WebApplication7
{
    public partial class WebForm1 : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            //    string str1 = Request.Form["UserName"];
            //    string str2 = Request.Form["Pwd"];
            //    string str3 = Request.Params["UserName"];
            //    string str4 = Request.Params["Pwd"];
            //    Response.Write($"<h1>欢迎你{UserName}，密码是{Pwd}</h1>");
        }

        protected void Button2_Click(object sender, EventArgs e)
        {

            string userName = UserName.Text;
            string pwd = Pwd.Text;
            Response.Redirect($"WebForm2.aspx?userName={UserName}&pwd={pwd}");
        }
    }
}